#ifndef UTILS_H
#define UTILS_H

#include <QString>



class Utils
{
private:
    Utils();

public:
    static Utils* getInstance();
    static uint8_t calcSum(uint8_t* src, uint16_t len);
    static void hex2text(uint8_t hex,  char* text);
    static void hex2String(uint8_t hex, QString& string);
    static void hexArray2String(uint8_t* hex, uint16_t size, QString& string);
private:
    static Utils  mInstance;
};

#endif // UTILS_H
